import { listUser } from '@/api/system/user'

const useCommonStore = defineStore(
    'common',
    {
        state: () => ({
            userList: []
        }),
        actions: {
            /** 查询用户列表 */
            getUserList() {
                listUser({ status: '0' }).then((res) => {
                    this.userList = res.data.list
                })
            }
        }
    })

export default useCommonStore
